import { EntitySchema } from '@mikro-orm/core';

export class ImsYzdKpQuestionWrong {
  id!: number;
  paperId!: number;
  questionId!: number;
  qId!: number;
  qData!: unknown;
  pData!: unknown;
  userId!: number;
  time!: string;
  uniacid!: number;
}

export const ImsYzdKpQuestionWrongSchema = new EntitySchema({
  class: ImsYzdKpQuestionWrong,
  properties: {
    id: { primary: true, type: 'number' },
    paperId: { type: 'number', index: 'paper_id' },
    questionId: { type: 'number', index: 'question_id' },
    qId: { type: 'number', index: 'q_id' },
    qData: { type: 'unknown', columnType: 'longtext' },
    pData: { type: 'unknown', columnType: 'longtext' },
    userId: { type: 'number', index: 'user_id' },
    time: { type: 'string', length: 255 },
    uniacid: { type: 'number', index: 'unaicid' },
  },
});
